package com.ruoyi.community.service.impl;

import java.util.List;

import com.ruoyi.community.domain.HeartChildrenInfo;
import com.ruoyi.community.mapper.HeartChildrenInfoMapper;
import com.ruoyi.community.service.IHeartChildrenInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 儿童信息Service业务层处理
 * 
 * @author Gaotian
 * @date 2021-12-16
 */
@Service
public class HeartChildrenInfoServiceImpl implements IHeartChildrenInfoService
{
    @Autowired
    private HeartChildrenInfoMapper heartChildrenInfoMapper;

    /**
     * 查询儿童信息
     * 
     * @param childid 儿童信息ID
     * @return 儿童信息
     */
    @Override
    public HeartChildrenInfo selectHeartChildrenInfoById(Long childid)
    {
        return heartChildrenInfoMapper.selectHeartChildrenInfoById(childid);
    }

    /**
     * 查询儿童信息列表
     * 
     * @param heartChildrenInfo 儿童信息
     * @return 儿童信息
     */
    @Override
    public List<HeartChildrenInfo> selectHeartChildrenInfoList(HeartChildrenInfo heartChildrenInfo)
    {
        return heartChildrenInfoMapper.selectHeartChildrenInfoList(heartChildrenInfo);
    }

    /**
     * 新增儿童信息
     * 
     * @param heartChildrenInfo 儿童信息
     * @return 结果
     */
    @Override
    public int insertHeartChildrenInfo(HeartChildrenInfo heartChildrenInfo)
    {
        return heartChildrenInfoMapper.insertHeartChildrenInfo(heartChildrenInfo);
    }

    /**
     * 修改儿童信息
     * 
     * @param heartChildrenInfo 儿童信息
     * @return 结果
     */
    @Override
    public int updateHeartChildrenInfo(HeartChildrenInfo heartChildrenInfo)
    {
        return heartChildrenInfoMapper.updateHeartChildrenInfo(heartChildrenInfo);
    }

    /**
     * 批量删除儿童信息
     * 
     * @param childids 需要删除的儿童信息ID
     * @return 结果
     */
    @Override
    public int deleteHeartChildrenInfoByIds(Long[] childids)
    {
        return heartChildrenInfoMapper.deleteHeartChildrenInfoByIds(childids);
    }

    /**
     * 删除儿童信息信息
     * 
     * @param childid 儿童信息ID
     * @return 结果
     */
    @Override
    public int deleteHeartChildrenInfoById(Long childid)
    {
        return heartChildrenInfoMapper.deleteHeartChildrenInfoById(childid);
    }
}
